//
//  ViewController.m
//  SLSlideImage
//
//  Created by 伟仔c on 15/4/6.
//  Copyright (c) 2015年 SL. All rights reserved.
//

#import "ViewController.h"
#import "SLSlideImageViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *imageNames = @[@"01.jpg", @"02.jpg", @"03.jpg", @"04.jpg", @"05.jpg", @"06.jpg", @"07.jpg", @"08.jpg", @"09.jpg"];
    
    /**********核心代码*********/
    SLSlideImageViewController *vc = [SLSlideImageViewController slideImageWithImageNames:imageNames intervalTime:2];
    vc.view.frame = CGRectMake(0, 100, self.view.frame.size.width, 250);
    [self addChildViewController:vc];
    [self.view addSubview:vc.view];
    /**********核心代码*********/
}

@end
